package ln.gather.jsr.common.util;

import javax.annotation.Priority;
import java.lang.reflect.AnnotatedElement;

/**
 * 注解工具
 */
public class AnnotationUtils extends BaseUtils {

    /**
     * 判断被注解注册了的元素是否为 Class <br/>
     * 被注册的元素可以是Class，Method，Field，Constructor，Package等
     */
    static boolean isType(AnnotatedElement annotatedElement) {
        return annotatedElement instanceof Class;
    }


    /**
     * //todo
     * @param type1
     * @param priorityClass
     * @return
     */
    public static Priority findAnnotation(Class<?> type1, Class<Priority> priorityClass) {
        return null;
    }
}
